<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="m" uri="/cutm_tags"%>

<head>
<title>查询联办单位</title>
<link rel="stylesheet"
	href="<s:url value="/common/css/datepicker.css"/>" type="text/css" />
<script type="text/javascript"
	src="<s:url value="/common/scripts/ui.datepicker.js"/>"></script>
<script type="text/javascript">
</script>
</head>
<body>
<h2 class="title">查询条件</h2>
<s:form id="editFirmForm" action="firm/ListFirm!search" method="post">
	<table class="form">
		<tr>
			<th width="20%">单位名称：</th>
			<td><s:textfield name="firm.name"/></td>
			<th width="20%">最低支持金额：</th>
			<td><s:textfield name="firm.amount" /></td>
		</tr>
		<tr>
			<th>开始时间：</th>
			<td><m:date name="firm.startDate" />
			</td>
			<th>结束时间：</th>
			<td><m:date name="firm.endDate" />
			</td>
		</tr>
	</table>
	<div class="btnGroup"><input type="submit" value="查询" /> </div>
</s:form>

<h2 class="title">联办单位列表</h2>
<table class="list">
	<thead>
		<tr>
			<th width="20%">单位名称</th>
			<th width="10%">开始日期</th>
			<th width="10%">结束日期</th>
			<th width="10%">支持金额</th>
			<th width="10%">联系人</th>
			<th width="10%">联系电话</th>
			<th width="20%">地址</th>
			<th width="10%">录入人员</th>
		</tr>
	</thead>
	<tbody><s:if test="firms.items.size()>0">
		<s:iterator value="firms.items">
			<tr id="pt${id }">
				<td><s:property value="name" /></td>
				<td><s:date name="startDate" format="yyyy-MM-dd" /></td>
				<td><s:date name="endDate" format="yyyy-MM-dd" /></td>
				<td><s:property value="amount" /></td>
				<td><s:property value="linkMan" /></td>
				<td><s:property value="phone" /></td>
				<td><s:property value="address" /></td>
				<td><s:property value="createUser.name" /></td>
			</tr>
		</s:iterator></s:if><s:else>
			<tr>
			<td colspan="8">对不起，没有符合您要求的记录</td>
			</tr>
		</s:else>
	</tbody>
</table>
<m:page value="${firms}"/>

</body>